package Calendar;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar);

        int year = calendar.get(Calendar.YEAR);
        System.out.println(year);

        int mm = calendar.get(Calendar.MONTH) + 1;
        System.out.println(mm);

        int dd = calendar.get(Calendar.DAY_OF_YEAR);
        System.out.println(dd);

//        calendar.set(Calendar.HOUR, 12);
//        System.out.println(calendar);

        calendar.add(Calendar.DAY_OF_YEAR,64);
        calendar.add(Calendar.MINUTE,64);

        Date date = calendar.getTime();
        System.out.println(date);


    }
}
